<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAgents extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('agents', function (Blueprint $table) {
            $table->increments('id');
            $table->string('functionary', 32)->comment('负责人员');
            $table->string('contactnumber', 32)->comment('联系电话');
            $table->string('address', 200)->comment('地址');
            $table->string('type', 32)->comment('类型：city城市,province省');
            $table->integer('areaid')->comment('区域id');
            $table->string('info', 512)->comment('预留字段');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
